<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>站点配置项</title>
    <script type='text/javascript' src='http://127.0.0.1/cooldreamer/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://127.0.0.1/cooldreamer/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://127.0.0.1/cooldreamer/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://127.0.0.1/cooldreamer/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://127.0.0.1/cooldreamer/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
HOST = '<?php echo $GLOBALS['user']['HOST'];?>';
ROOT = '<?php echo $GLOBALS['user']['ROOT'];?>';
WEB = '<?php echo $GLOBALS['user']['WEB'];?>';
URL = '<?php echo $GLOBALS['user']['URL'];?>';
HDPHP = '<?php echo $GLOBALS['user']['HDPHP'];?>';
HDPHPDATA = '<?php echo $GLOBALS['user']['HDPHPDATA'];?>';
HDPHPTPL = '<?php echo $GLOBALS['user']['HDPHPTPL'];?>';
HDPHPEXTEND = '<?php echo $GLOBALS['user']['HDPHPEXTEND'];?>';
APP = '<?php echo $GLOBALS['user']['APP'];?>';
CONTROL = '<?php echo $GLOBALS['user']['CONTROL'];?>';
METH = '<?php echo $GLOBALS['user']['METH'];?>';
GROUP = '<?php echo $GLOBALS['user']['GROUP'];?>';
TPL = '<?php echo $GLOBALS['user']['TPL'];?>';
CONTROLTPL = '<?php echo $GLOBALS['user']['CONTROLTPL'];?>';
STATIC = '<?php echo $GLOBALS['user']['STATIC'];?>';
PUBLIC = '<?php echo $GLOBALS['user']['PUBLIC'];?>';
HISTORY = '<?php echo $GLOBALS['user']['HISTORY'];?>';
HTTPREFERER = '<?php echo $GLOBALS['user']['HTTPREFERER'];?>';
</script>
    <link href='http://127.0.0.1/cooldreamer/hdphp/hdphp/Extend/Org/bootstrap/css/bootstrap.min.css' rel='stylesheet' media='screen'>
<script src='http://127.0.0.1/cooldreamer/hdphp/hdphp/Extend/Org/bootstrap/js/bootstrap.min.js'></script>
                <!--[if lte IE 6]>
                <link rel="stylesheet" type="text/css" href="http://127.0.0.1/cooldreamer/hdphp/hdphp/Extend/Org/bootstrap/ie6/css/bootstrap-ie6.css">
                <![endif]-->
                <!--[if lt IE 9]>
                <script src="http://127.0.0.1/cooldreamer/hdphp/hdphp/Extend/Org/bootstrap/js/html5shiv.min.js"></script>
                <script src="http://127.0.0.1/cooldreamer/hdphp/hdphp/Extend/Org/bootstrap/js/respond.min.js"></script>
                <![endif]-->
    <link type="text/css" rel="stylesheet" href="http://127.0.0.1/cooldreamer/./Cms/Cms/Admin/Tpl/Webset/css/css.css"/>
</head>
<body>
<div class="wrap">
    <div class="title-header">站点配置</div>
    <form action="" method="post" class="form-inline hd-form">
        <table class="table1">
            <tr>
                <td class="w100">名称</td>
                <td class="w100">值</td>
                <td class="w150">标题</td>
                <td class="w150">描述</td>
            </tr>

            <tr>
                <th colspan="100">基本配置</th>
            </tr>
            <?php if(is_array($data[1])):?><?php  foreach($data[1] as $v){ ?>
                <tr>
                    <td class="w100"><?php echo $v['name'];?></td>
                    <td class="w100">
                        <?php if($v['name'] == 'index_tpl_style'){?>
                            <select name="<?php echo $v['name'];?>" id="">  
                                <?php if(is_array($template)):?><?php  foreach($template as $value){ ?>
                                    <option value="<?php echo $value['name'];?>"<?php if($v['value'] == $value['name']){?>selected="selected"<?php }?>><?php echo $value['name'];?></option>
                                <?php }?><?php endif;?>
                            </select>
                        <?php  }else{ ?>
                             <input type="text" name="<?php echo $v['name'];?>" id="" value="<?php echo $v['value'];?>"/>
                        <?php }?>
                    </td>
                    <td class="w150"><?php echo $v['title'];?></td>
                    <td class="w150"><?php echo $v['des'];?></td>
                </tr>
            <?php }?><?php endif;?>

            <tr>
                <th colspan="100">验证码配置</th>
            </tr>
            <?php if(is_array($data[2])):?><?php  foreach($data[2] as $v){ ?>
                <tr>
                    <td class="w100"><?php echo $v['name'];?></td>
                    <td class="w100">
                        <input type="text" name="<?php echo $v['name'];?>" id="" value="<?php echo $v['value'];?>" />
                    </td>
                    <td class="w150"><?php echo $v['title'];?></td>
                    <td class="w150"><?php echo $v['des'];?></td>
                </tr>
            <?php }?><?php endif;?>

            <tr>
                <th colspan="100">水印配置</th>
            </tr>
            <?php if(is_array($data[3])):?><?php  foreach($data[3] as $v){ ?>
                <tr>
                    <td class="w100"><?php echo $v['name'];?></td>
                    <td class="w100">
                        <input type="text" name="<?php echo $v['name'];?>" id="" value="<?php echo $v['value'];?>" />
                    </td>
                    <td class="w150"><?php echo $v['title'];?></td>
                    <td class="w150"><?php echo $v['des'];?></td>
                </tr>
            <?php }?><?php endif;?>

            <tr>
                <th colspan="100">缩略图配置</th>
            </tr>
            <?php if(is_array($data[4])):?><?php  foreach($data[4] as $v){ ?>
                <tr>
                    <td class="w100"><?php echo $v['name'];?></td>
                    <td class="w100">
                        <input type="text" name="<?php echo $v['name'];?>" id="" value="<?php echo $v['value'];?>" />
                    </td>
                    <td class="w150"><?php echo $v['title'];?></td>
                    <td class="w150"><?php echo $v['des'];?></td>
                </tr>
            <?php }?><?php endif;?>
        </table>
        <div class="position-bottom">
            <input type="submit" class="hd-success" value="保存"/>
        </div>
    </form>
</div>
</body>
</html>